package pure.engine.world.decorator 
{
	import flash.events.MouseEvent;
	import pure.engine.world.IMonitor;
	import pure.engine.world.WorldBody;
    import pure.engine.core.ns_despair;
    
    use namespace ns_despair;

	/**
	 * 背景监视器
	 * @author Pure
	 * 
	 */
public class BackgroundMonitor extends MonitorDecorator
{
	public function BackgroundMonitor(baseMonitor:IMonitor, bgColor:uint, bgAlpha:Number, lineThickness:Number = 0, lineColor:uint = 0, lineAlpha:Number = 0)
	{
		super(baseMonitor);
		
		this.mouseEnabled = false;
		this.graphics.beginFill(bgColor, bgAlpha);
		if(lineThickness > 0)
		{
			this.graphics.lineStyle(lineThickness, lineColor, lineAlpha);
		}
		this.graphics.drawRect(0, 0, m_viewW, m_viewH);
	}
	

	
}

}